<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form th:action="@{/login}" style="color: red">
   <p>用户名：<input name="username" type="text"></p>
    <p>密码：<input name="password" type="password"></p>
    <p> <button type="submit">登录</button></p>
</form>
<p th:text="${msg}"></p>
</body>
</html>